package com.prik.facade.subsystem;

/**
 * @description:
 * @author: Xu Shiwei
 * @create: 2019-08-16
 **/
public class LetterProcess {

    private LetterWriter letterWriter = new LetterWriter();
    private Police police = new Police();

    public void sendLetter(String context, String address) {
        letterWriter.writeContext(context);
        letterWriter.writeAddress(address);

        // 增加警察检查内容步骤
        police.checkLetter(letterWriter);

        letterWriter.putIntoEnvelope();
        letterWriter.sendLetter();
    }
}